execute if data entity @s SelectedItem.components."minecraft:custom_data".powerSwordAttribute run return fail
execute as @s[gamemode=creative] run return fail
item modify entity @s weapon.mainhand {function:"set_damage",damage:0.0}
function vs:item/generic_power_sword/dagger_attribute